var publishService = require('./publishService');

module.exports = {
    start:  startTask,
    stop:   stopTask,
    state:  getState,
    list:   getList
}

function startTask( req, res, next ) {
    publishService.startTask( req.swagger.params, res, next );
}

function stopTask( req, res, next ) {
    publishService.stopTask( req.swagger.params, res, next );
}

function getList( req, res, next ) {
    publishService.getList( req.swagger.params, res, next );
}

function getState( req, res, next ) {
    publishService.getState( req.swagger.params, res, next );
}